package com.example.demo.server.service;

import com.example.demo.server.dao.UserDao;
import com.example.demo.server.model.UserInfo;


public class UserService {

    private UserDao userDao = new UserDao();

    public int register(UserInfo userInfo) {
        return userDao.register(userInfo);
    }

    public UserInfo getUserByUsername(String username) {
        return userDao.selectByUsername(username);
    }

    public UserInfo getUserByUid(int uid) {
        return userDao.getUserByUid(uid);
    }
}
